﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Configuration;

namespace LLFM.CAT.Config
{
    public sealed class WebConfig
    {
        private WebConfig() { ;}

        #region 图片上传相关配置
        public static readonly string AttachUploadDir = ConfigurationManager.AppSettings["AttachUploadDir"];
        public static readonly string AttachUploadSubDir = ConfigurationManager.AppSettings["AttachUploadSubDir"];
        public static readonly int AttachmentMaxSize = int.Parse(ConfigurationManager.AppSettings["AttachmentMaxSize"]);
        public static readonly string ImageMaxWidth = ConfigurationManager.AppSettings["ImageMaxWidth"];
        public static readonly string AttachmentLimitExtension = ConfigurationManager.AppSettings["AttachmentLimitExtension"];
        public static readonly string DefaultCoverImage = ConfigurationManager.AppSettings["DefaultCoverImage"];
        #endregion
    }
}
